package cn.smbms.service.user;

import cn.smbms.tools.ConfigManage;
import org.junit.Test;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @program: SMBMS-two
 * @description: 线程测试
 * @author: Mr.peng
 * @create: 2020-05-22 15:20
 **/
public class test {
    @Test
    public void rts(){
        ExecutorService cachedThreadPool =Executors.newCachedThreadPool();
        for(int i=0;i<50;i++){
            cachedThreadPool.execute(new Runnable() {
                @Override
                public void run() {
                    System.out.println(ConfigManage.config().hashCode());
                }
            });
        }
    }
}
